﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.ComponentModel;
using Ajeelee.Core.Utils;

namespace FxhjpgWeb.WebSite.en.UC
{
    public partial class header : System.Web.UI.UserControl
    {
        protected string typeName = "pfdn", logoUrl = "/images/pfdn_logo.jpg";
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                if (this.Request.Url.Segments.Length > 1)
                {
                    string flag = this.Request.Url.Segments[1];
                    if (flag.ToLower() == "en/" && this.Request.Url.Segments.Length > 2)
                    {
                        flag = this.Request.Url.Segments[2].ToLower();
                    }
                    switch (flag)
                    {
                        case "mk/":
                            typeName = "mk";
                            break;
                        case "ylx/":
                            typeName = "ylx";
                            logoUrl = "/images/ylx_logo.jpg";
                            break;
                        case "sstj/":
                            typeName = "sstj";
                            logoUrl = "/images/sstj_logo.jpg";
                            break;
                    }
                }
            }
            catch (Exception ex)
            {
                Function.WriteErrorLog(ex);
            }
        }

        private NavigationType _currentNavType;
        [Browsable(true), Description("")]
        public NavigationType CurrentNavType
        {
            get
            {
                return _currentNavType;
            }
            set
            {
                _currentNavType = value;
            }
        }
    }
}